package com.nebula.api.modules.message.service.impl;

import com.baomidou.mybatisplus.core.conditions.AbstractWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.nebula.api.modules.message.entity.SystemMessage;
import com.nebula.api.modules.message.mapper.MessageMapper;
import com.nebula.api.modules.message.service.ISysMessageService;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Log4j2
public class ISysMessageServiceImpl extends ServiceImpl<MessageMapper, SystemMessage> implements ISysMessageService {

    @Autowired
    private MessageMapper messageMapper;

    @Override
    public IPage<SystemMessage> getMessageList(Page page, AbstractWrapper wrapper) {
        return messageMapper.selectPage(page, wrapper);
    }
}
